package com.draemoncode.weixindb.repository;


import com.draemoncode.weixindb.domain.B_XiaZhu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface B_XiaZhuRepository extends JpaRepository<B_XiaZhu, Integer>{

    @Query("from B_XiaZhu where pod_id=?1 and member_id=?2")
    public B_XiaZhu findByPod_idAndMember_id(Integer pod_id, Integer member_id);

    @Query("from B_XiaZhu where pod_id=?1")
    public List<B_XiaZhu> findByPod_id(Integer pod_id);
}
